package FIT::Document::Transformer::Note;

use FIT::Class;

extends 'FIT::Document::Transformer::Base';

has text => (is => 'ro', isa => 'Str', required => 1);

sub _transform {
    my $element = shift;
    $element->set_att(class => 'fit_note');
    $element->replace_text( $self->escape( $self->text ) );
}
